var t = require("../../../utils/util.js"), e = getApp(), o = e.globalData.url;

Page({
    data: {
        domain: o,
        traitList: [ "洗车不错", "店铺服务很好", "距离近，不错" ],

    },
    onLoad: function(t) {
        this.getShopInfo(t.id);
    },
    onShareAppMessage: function(t) {},
    getShopInfo: function(o) {
        var a = this;     

        wx.request({
            url: "http://localhost:9091/store-8899/store/selectByStoreId",
            method: "post",
            header: {
                "Content-Type": "application/x-www-form-urlencoded"
            },
            data: {
                storeId:"1",
            },
            success: function(e) {
                var e = e.data.data;
                console.log(e);
                a.setData({
                    storeId: e.storeId,
                    storeName: e.storeName,
                    sBoss: e.sBoss,
                    storeScore: e.storeScore,
                    storeStart: e.storeStart,
                    storeEnd: e.storeEnd,
                    storeTel: e.storeTel,
                    storeAddr: e.storeAddr,
                    storeImg: e.storeImg
                });
            }
        })
        
    }
});